package com.tledu.production.mapper.crafts;

import com.tledu.production.model.crafts.ProcessModel;
import com.tledu.production.model.crafts.TechnologyRequirementModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.ui.Model;

import java.util.List;

/**
 * @author hp
 */
@Mapper
public interface ProcessMapper {
    //分页查询
    List<ProcessModel>list();
    //根据工艺名称查询
    List<ProcessModel>selectByName(@Param("type")String condition, @Param("searchText") String conditionName);
    //删除
    int delPro(String id);
    //增加
    int insertpro(ProcessModel processModel);
    //编辑
    int updatepro(ProcessModel processModel);
    //根据ID查全部
    ProcessModel selectId(String processId);
}
